﻿#pragma once
#include "afxdialogex.h"
#include "Kc3xType.h"
#include "Kc3xRegiDiff.h"


// CPopSpeaker 对话框

class CPopSpeaker : public CDialogEx
{
	DECLARE_DYNAMIC(CPopSpeaker)

public:
	CPopSpeaker(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CPopSpeaker();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_POP_SPEAKER };
#endif

	//bool isUserClick;				// 用户操作View的标志
	uint8_t gLpValue;				// 超低音频率
	uint8_t gHpValue;				// 小喇叭频率

	void ShowRegister();
	void ShowSpeaker(int value, int id0, int id1, int id2);

	void SetFrequencyValue(int slider, int edit);
	int ShowSlider(uint8_t value, int slider, int edit);
	int gSlowTime;

	int GetSpeaker(int id0, int id1, int id2);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnNMCustomdrawSliderSmallFrequency(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnNMCustomdrawSliderSwFrequency(NMHDR* pNMHDR, LRESULT* pResult);
};